<script type="text/javascript" src="{$smarty.const.THEME_RELATIVE}modules/countdownmodule/swfobject_for_countdown.js"></script> 
<div style="width: {$config->width}px; height: {$config->height}px;">
	<p id="xCountdownClock"></p>
</div>{literal}
<script type="text/javascript">
	var flashvars = {
	{/literal}
		eventDate: '{$config->eventDate}',
		daysColor: '{$config->daysColor}',
		hoursColor: '{$config->hoursColor}',
		minutesColor: '{$config->minutesColor}',
		secondsColor: '{$config->secondsColor}'
		{if $config->skin_fileid >0}
		,panelSkin: '{$config->picpath}'
		{/if}
		{if $config->url != ''}
		,widgetUrl: '{$config->url}'
		{/if}
	{literal}
	};
	{/literal}
	swfobject.embedSWF(
		'{$smarty.const.THEME_RELATIVE}modules/countdownmodule/xCountdownClock.swf', // path to the widget
		'xCountdownClock',
		'{$config->control_width}', // width of the widget
		'{$config->control_height}', // height of the widget
		'8',
		'{$smarty.const.THEME_RELATIVE}modules/countdownmodule/expressInstall.swf',
		flashvars,
		{literal}
		{scale: 'noscale', wmode: 'transparent'}
	);
</script>
{/literal}